package com.mrx.xbrowsersync.converter;

import org.springframework.beans.BeanUtils;

import java.util.function.Supplier;

/**
 * @author Mr.X
 * @since 2024-03-05 下午 8:04:34
 */
public class BookmarkConverter {

    public static <T, R> R convert(T src, Supplier<R> dst) {
        R result = dst.get();
        BeanUtils.copyProperties(src, result);
        return result;
    }

}
